package jyj.springmvc.learning.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author 老顽固小可爱
 * @Date 2022/12/12 19:58
 * @Version 1.0
 */
@Controller
public class ExceptionController {
    /**
     * 测试 DefaultHandlerExceptionResolver（Spring MVC 默认的异常处理器）
     *
     * @return
     */
    @RequestMapping(value = "/testDefaultHandlerExceptionResolver", method = RequestMethod.POST)
    public String testDefaultHandlerExceptionResolver() {
        return "success";
    }
}
